package org.qydjk.common.pojo.specialist;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 专家
 * Created by Edward_yang on 2018/1/8 0003.
 */
@Entity
@Table(name = "qy_specialist", catalog = "qydjk")

public class Specialist implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer sellerId;
	private Integer hospitalDepartmentId;
	private String name;
	private String professionPosition;//职位
	private String img;
	private Integer sex;
	private Integer age;
	private String tel;//电话
	private Integer virtaulCommentCount;
	private Integer commentCount;
	private Float commentScore;
	private String beAdeptAt; //擅长
	private String detail;//专家简介
	private Integer ord;
	private Integer verifyType;
	private Integer status;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public Specialist() {
	}

	/** full constructor */
	public Specialist(Integer userId, Integer sellerId, Integer hospitalDepartmentId, String name,
			String professionPosition, String img, Integer sex, Integer age,String tel, Integer virtaulCommentCount, Integer commentCount,
			Float commentScore, String beAdeptAt, String detail, Integer ord, Integer verifyType, Integer status,
			Date createTime, Date updateTime) {
		this.userId = userId;
		this.sellerId = sellerId;
		this.hospitalDepartmentId = hospitalDepartmentId;
		this.name = name;
		this.professionPosition = professionPosition;
		this.img = img;
		this.sex = sex;
		this.age=age;
		this.tel = tel;
		this.virtaulCommentCount = virtaulCommentCount;
		this.commentCount = commentCount;
		this.commentScore = commentScore;
		this.beAdeptAt = beAdeptAt;
		this.detail = detail;
		this.ord = ord;
		this.verifyType = verifyType;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "seller_id")

	public Integer getSellerId() {
		return this.sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	@Column(name = "hospital_department_id")
	public Integer getHospitalDepartmentId() {
		return hospitalDepartmentId;
	}

	public void setHospitalDepartmentId(Integer hospitalDepartmentId) {
		this.hospitalDepartmentId = hospitalDepartmentId;
	}


	@Column(name = "name", length = 200)

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "profession_position", length = 200)

	public String getProfessionPosition() {
		return this.professionPosition;
	}

	public void setProfessionPosition(String professionPosition) {
		this.professionPosition = professionPosition;
	}

	@Column(name = "img", length = 200)

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	@Column(name = "virtaul_comment_count")

	public Integer getVirtaulCommentCount() {
		return this.virtaulCommentCount;
	}

	public void setVirtaulCommentCount(Integer virtaulCommentCount) {
		this.virtaulCommentCount = virtaulCommentCount;
	}

	@Column(name = "comment_count")

	public Integer getCommentCount() {
		return this.commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	@Column(name = "comment_score", precision = 2, scale = 1)

	public Float getCommentScore() {
		return this.commentScore;
	}

	public void setCommentScore(Float commentScore) {
		this.commentScore = commentScore;
	}

	@Column(name = "be_adept_at", length = 65535)

	public String getBeAdeptAt() {
		return this.beAdeptAt;
	}

	public void setBeAdeptAt(String beAdeptAt) {
		this.beAdeptAt = beAdeptAt;
	}

	@Column(name = "detail", length = 65535)

	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	@Column(name = "ord")

	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "verify_type")

	public Integer getVerifyType() {
		return this.verifyType;
	}

	public void setVerifyType(Integer verifyType) {
		this.verifyType = verifyType;
	}

	@Column(name = "status")

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "tel", length = 20)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "sex")
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}
	@Column(name = "age")
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}